package test;

/**
 * @Author:zimmor
 * @Date: 2023/2/17 15:12
 * @Description
 * @version: 1.0.0
 */

public class Demo9 {
    public static void main(String[] args) {
        String str1 = "123456";
        String str2 = new String("123456");
        System.out.println("str1 = " + str1.hashCode());
        System.out.println(str1);
        System.out.println("str2 = " + str2.hashCode());
        System.out.println(str2);
    }
}
